package main

import "fmt"

func main()  {
	getAdd(1, 2,3)

	getAdd(1,2,3,4,5,6,7,8,9,10)

	getAdd()

	s1 := []int{5,6,7,8}
	getAdd(s1...)

	//append()
	fmt.Println()

}

func getAdd(nums ... int) {
	fmt.Printf("%T\n", nums)
	sum := 0
	for _,v := range nums{
		sum += v
	}
	fmt.Println(sum)
}

func fun1(s1,s2 string, nums ...int)  {

}

